package com.fhz.day011;

import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import javax.inject.Inject;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = "feng";

    @Xiao
    @Inject
    User user;

    @Da
    @Inject
    User user1;

//    @Inject
//    Student student;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

//        DaggerUserComponent.builder().build().inject(this);
        DaggerUserComponent.builder().userMoudle(new UserMoudle()).build().inject(this);

//        user.name = "haha";
        Log.i(TAG, "onCreate: "+user.name);
        Log.i(TAG, "onCreate: "+user1.name);
    }
}